package com.xingkeduo.pojo.query;

import com.xingkeduo.util.pojo.base.BaseQuery;
import com.xingkeduo.util.pojo.enums.YesNoEnum;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * @Description:
 * @Author:gaozifeng
 * @Date 2019/2/20 10:21
 **/
@Alias("ConsumerStatisticsQO")
public class ConsumerStatisticsQO extends BaseQuery<ConsumerStatisticsQO> {

    private Integer serviceTotal;

    private String serviceMoney;

    private List<Long> ids;

    //查询服务次数的小值
    private Integer serviceTotalmin;

    private String refundMoney;

    private String lastTime;

    private YesNoEnum isDelete;

    public String getLastTime() {
        return lastTime;
    }

    public ConsumerStatisticsQO setLastTime(String lastTime) {
        this.lastTime = lastTime;
        return this;
    }

    public String getServiceMoney() {
        return serviceMoney;
    }

    public ConsumerStatisticsQO setServiceMoney(String serviceMoney) {
        this.serviceMoney = serviceMoney;
        return this;
    }

    public String getRefundMoney() {
        return refundMoney;
    }

    public ConsumerStatisticsQO setRefundMoney(String refundMoney) {
        this.refundMoney = refundMoney;
        return this;
    }

    public YesNoEnum getIsDelete() {
		return isDelete;
	}

	public ConsumerStatisticsQO setIsDelete(YesNoEnum isDelete) {
		this.isDelete = isDelete;
        return this;
	}

    public Integer getServiceTotalmin() {
        return serviceTotalmin;
    }

    public void setServiceTotalmin(Integer serviceTotalmin) {
        this.serviceTotalmin = serviceTotalmin;
    }

    public Integer getServiceTotal() {
        return serviceTotal;
    }

    public void setServiceTotal(Integer serviceTotal) {
        this.serviceTotal = serviceTotal;
    }

    public List<Long> getIds() {
        return ids;
    }

    public ConsumerStatisticsQO setIds(List<Long> ids) {
        this.ids = ids;
        return this;
    }

    public boolean isEmpty() {
        if (!isSuperEmpty() || serviceTotal != null )
            return false;

        return true;
    }
}
